package record

import "crmeb-common/global"

// SensitiveMethodLog 敏感操作日志表
type SensitiveMethodLog struct {
	global.BaseModel
	MerId int32 `json:"merId" gorm:"column=mer_id;comment:商户id，0-平台"`

	AdminId int32 `json:"adminId" gorm:"column=admin_id;comment:管理员id"`

	AdminAccount string `json:"adminAccount" gorm:"column=admin_account;comment:管理员账号"`

	Description string `json:"description" gorm:"column=description;comment:接口描述"`

	MethodType string `json:"methodType" gorm:"column=method_type;comment:业务类型"`

	Method string `json:"method" gorm:"column=method;comment:方法名称"`

	RequestMethod string `json:"requestMethod" gorm:"column=request_method;comment:请求方式"`

	Url string `json:"url" gorm:"column=url;comment:请求URL"`

	Ip string `json:"ip" gorm:"column=ip;comment:主机地址"`

	RequestParam string `json:"requestParam" gorm:"column=request_param;comment:请求参数"`

	Result string `json:"result" gorm:"column=result;comment:返回参数"`

	Status int32 `json:"status" gorm:"column=status;comment:操作状态（0正常 1异常）"`

	ErrorMsg string `json:"errorMsg" gorm:"column=error_msg;comment:错误消息"`
}
